class ShenBaoListBean {
  int code;
  String message;
  List<Result> result;
  bool success;
  int timestamp;

  ShenBaoListBean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  ShenBaoListBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String createDay;
  String createTime;
  String hours0;
  String hours1;
  String hours10;
  String hours11;
  String hours12;
  String hours13;
  String hours14;
  String hours15;
  String hours16;
  String hours17;
  String hours18;
  String hours19;
  String hours2;
  String hours20;
  String hours21;
  String hours22;
  String hours23;
  String hours3;
  String hours4;
  String hours5;
  String hours6;
  String hours7;
  String hours8;
  String hours9;
  String meterId;
  var sumDaily;

  Result(
      {this.createDay,
        this.createTime,
        this.hours0,
        this.hours1,
        this.hours10,
        this.hours11,
        this.hours12,
        this.hours13,
        this.hours14,
        this.hours15,
        this.hours16,
        this.hours17,
        this.hours18,
        this.hours19,
        this.hours2,
        this.hours20,
        this.hours21,
        this.hours22,
        this.hours23,
        this.hours3,
        this.hours4,
        this.hours5,
        this.hours6,
        this.hours7,
        this.hours8,
        this.hours9,
        this.meterId,
        this.sumDaily});

  Result.fromJson(Map<String, dynamic> json) {
    createDay = json['createDay'];
    createTime = json['createTime'];
    hours0 = json['hours0'];
    hours1 = json['hours1'];
    hours10 = json['hours10'];
    hours11 = json['hours11'];
    hours12 = json['hours12'];
    hours13 = json['hours13'];
    hours14 = json['hours14'];
    hours15 = json['hours15'];
    hours16 = json['hours16'];
    hours17 = json['hours17'];
    hours18 = json['hours18'];
    hours19 = json['hours19'];
    hours2 = json['hours2'];
    hours20 = json['hours20'];
    hours21 = json['hours21'];
    hours22 = json['hours22'];
    hours23 = json['hours23'];
    hours3 = json['hours3'];
    hours4 = json['hours4'];
    hours5 = json['hours5'];
    hours6 = json['hours6'];
    hours7 = json['hours7'];
    hours8 = json['hours8'];
    hours9 = json['hours9'];
    meterId = json['meterId'];
    sumDaily = json['sumDaily'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createDay'] = this.createDay;
    data['createTime'] = this.createTime;
    data['hours0'] = this.hours0;
    data['hours1'] = this.hours1;
    data['hours10'] = this.hours10;
    data['hours11'] = this.hours11;
    data['hours12'] = this.hours12;
    data['hours13'] = this.hours13;
    data['hours14'] = this.hours14;
    data['hours15'] = this.hours15;
    data['hours16'] = this.hours16;
    data['hours17'] = this.hours17;
    data['hours18'] = this.hours18;
    data['hours19'] = this.hours19;
    data['hours2'] = this.hours2;
    data['hours20'] = this.hours20;
    data['hours21'] = this.hours21;
    data['hours22'] = this.hours22;
    data['hours23'] = this.hours23;
    data['hours3'] = this.hours3;
    data['hours4'] = this.hours4;
    data['hours5'] = this.hours5;
    data['hours6'] = this.hours6;
    data['hours7'] = this.hours7;
    data['hours8'] = this.hours8;
    data['hours9'] = this.hours9;
    data['meterId'] = this.meterId;
    data['sumDaily'] = this.sumDaily;
    return data;
  }
}
